﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StockSharp.BusinessEntities;

namespace Sample.TradingClasses.RobotsData
{
    public interface IRobotStartXmlInfo
    {
        DateTime RobotDateTimeCreating { get; set; }
        RobotType RobotType { get; set; }
        string RobotFolderNameXML { get; set; }
        string RobotFileNameXML { get; set; }
        string RobotFullNameXML { get; set; }
        string RobotFolderNameDB { get; set; }
        string RobotFileNameDB { get; set; }
        string RobotFullNameDB { get; set; }
        Portfolio RobotPF { get; set; }

    }

    public interface IRobotCurrentPositionXmlInfo
    {
        ONOFF RobotCurrentMode { get; set; } // ON/OFF
        MP RobotCurrentDirection { get; set; }
        Security RobotCurrentSecurity { get; set; }
        int RobotCurrentLots { get; set; }
        decimal RobotCurrentPositionPrice { get; set; }
        DateTime RobotCurrentPositionDateTime { get; set; }
        decimal RobotCurrentOrderLimit { get; set; }
        decimal RobotCurrentOrderStop { get; set; }
    }

    public class Signal
    {
        private ONOFF SignalMode;
        decimal Level;
        string Name;
        DIR Direction;
        OrderType Type;
        ActionType ActionType;
        Signal MasterSignal;
    }

    public interface IRobotSignalLevelsXmlInfo
    {
        Signal Level { get; set; }
        Signal StopLevel { get; set; }
        Signal TargetLevel { get; set; }
    }

    public interface IRobotQuikXmlInfo
    {
        ONOFF QuikCurrentMode { get; set; }
        DateTime QuikOpenCorrectTime { get; set; }
        DateTime QuikCloseCorrectTime { get; set; }
        DateTime QuikLastLastTime { get; set; }
        decimal QuikCorrectOpenPrice { get; set; }
        decimal QuikCorrectClosePrice { get; set; }
        bool QuikCorrectSessionSavedDB { get; set; }
        decimal QuikComputerDeltaTime { get; set; } 
        decimal QuikComputerDeltaTimeLimit { get; set; } // maksimalxnoe rashovdenie po wremeni mevdu kompom i kwikom
        decimal QuikLast2TradesDeltaTime { get; set; } 
        decimal QuikLast2TradesDeltaTimeLimit { get; set; }//maksimalxnoe wremennoerashovdenie mevdu dwumq  posledowatelxnymi sdelkami

	}
	
}
 
